package com.miplus.ccrm.workflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseService;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.workflow.model.common.DeleteRequest;
import com.miplus.ccrm.workflow.model.dto.knowledge.KnowledgeBaseQueryDTO;
import com.miplus.ccrm.workflow.model.dto.knowledge.KnowledgeBaseCreateDTO;
import com.miplus.ccrm.workflow.model.dto.knowledge.KnowledgeBaseUpdateDTO;
import com.miplus.ccrm.workflow.model.po.WorkflowKnowledgeBase;
import com.miplus.ccrm.workflow.model.vo.KnowledgeBaseVO;

import java.util.List;

/**
 * @author feixiang
 * @description 针对表【workflow_knowledge_base(知识库表)】的数据库操作Service
 * @createDate 2025-11-04 20:48:14
 */
public interface WorkflowKnowledgeBaseService extends MPJBaseService<WorkflowKnowledgeBase> {

    CmdResVo cereateKnowledgeBase(KnowledgeBaseCreateDTO knowledgeBaseDTO);

    CmdResVo updateKnowledgeBase(KnowledgeBaseUpdateDTO knowledgeBaseUpdateDTO);

    CmdResVo deleteById(Long id);

    IPage<KnowledgeBaseVO> getKnowledgeBaseList(KnowledgeBaseQueryDTO query);

    CmdResVo deleteKnowledgeBase(DeleteRequest deleteRequest);

    List<KnowledgeBaseVO> getEnableKnowledgeBaseList();
}